package gao.xiaolei.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.time.LocalDateTime;

@Entity
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Data
public class TestDesignCheck extends TestCheckBase {

    @Column
    private String subjectPath;

    public TestDesignCheck(String id, String targetId, String checkMan, String annotate, int isPass, int isFinish, LocalDateTime checkDate, String subjectPath, String projectId) {
        super(id, targetId, checkMan, annotate, isPass, isFinish, checkDate, projectId);
        this.subjectPath = subjectPath;
    }

    public TestDesignCheck(String id, int isPass, String checkMan, int isFinish, LocalDateTime checkDate) {
        super(id, isPass, checkMan, isFinish, checkDate, null);
    }

    public TestDesignCheck() {
    }
}
